<% for column in Book.content_columns %>
  <% if !['idx','state'].include?(column.name) -%>
  <p>
    <b><%= column.human_name %>:</b> <%=h @book.send(column.name) %>
  </p>
   <% else if ['state'].include?(column.name) -%>
  <p>
    <b><%= column.human_name %>:</b> <%=h format_state(@book.send(column.name)) %>
  </p>
  <% end  end -%>
<% end %>

<%= link_to 'Edit', :action => 'edit', :id => @book %> |
<%= link_to 'Back', :action => 'list' %>
